<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8" />
    <title>25_web字体-阿里字体</title>
    <style>
        @font-face {
            font-family: 'webfont';
            font-display: swap;
            src: url('./source/fonts-web/webfont.eot');
            /* IE9 */
            src: url('./source/fonts-web/webfont.eot?#iefix') format('embedded-opentype'),
                /* IE6-IE8 */
                url('./source/fonts-web/webfont.woff2') format('woff2'),
                url('./source/fonts-web/webfont.woff') format('woff'),
                /* chrome、firefox */
                url('./source/fonts-web/webfont.ttf') format('truetype'),
                /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
                url('./source/fonts-web/webfont.svg#webfont') format('svg');
            /* iOS 4.1- */
        }

        .web-font {
            font-family: "webfont" !important;
            font-size: 16px;
            font-style: normal;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
    </style>
</head>

<body>
    <i class="web-font">这是引用的一个字体</i>
</body>

</html>